<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fm" uri="http://java.sun.com/jsp/jstl/fmt" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <title>Title</title>
    <link rel="stylesheet" type="text/css" href="<%=request.getContextPath()%>/css/style.css" />
    <link rel="stylesheet" type="text/css" href="<%=request.getContextPath()%>/css/shopping-mall-index.css" />
    <script type="text/javascript" src="<%=request.getContextPath()%>/js/jquery.js"></script>
    <script type="text/javascript" src="<%=request.getContextPath()%>/js/zhonglin.js"></script>
</head>
<body>

<!--top 开始-->
<div class="personal-r f-r">
    <div class="personal-right">
        <div class="personal-r-tit">
            <h3>个人资料</h3>
        </div>
        <form action="${pageContext.request.contextPath}/user/modifyUser.action" method="post">
            <%--<c:forEach items="${users}" var="user">--%>
            <div class="data-con">
                <div class="dt1">
                    <p class="f-l">当前头像：</p>
                    <div class="touxiang f-l">
                        <div class="tu f-l">
                            <a href="#">
                                <img src="<%=request.getContextPath()%>/images/data-tu.gif" />
                                <input type="file" name="" id="" class="img1" />
                            </a>
                        </div>
                        <a href="JavaScript:;" class="sc f-l" shangchuang="">上传头像</a>
                        <div style="clear:both;"></div>
                    </div>
                    <div style="clear:both;"></div>
                </div>
                <div class="dt1">
                    <p class="dt-p f-l">昵称：</p>
                    <input type="text" name="username" value="${user.username}" />
                    <div style="clear:both;"></div>
                </div>
                <div class="dt1">
                    <p class="dt-p f-l">用户名：</p>
                    <input type="text" name="name" value="${user.name}" />
                    <div style="clear:both;"></div>
                </div>
                <div class="dt1 dt2">
                    <p class="dt-p f-l">性别：</p>
                    <input type="radio" name="hobby" value="nan"></input><span>男</span>
                    <input type="radio" name="hobby" value="nan"></input><span>女</span>
                    <div style="clear:both;"></div>
                </div>
                <div class="dt1">
                    <p class="dt-p f-l">年龄：</p>
                    <input type="text" name="age" value="${user.age}" />
                    <div style="clear:both;"></div>
                </div>
                <div class="dt1 dt3">
                    <p class="dt-p f-l">手机号：</p>
                    <input type="text" name="phone" value="${user.phone}" />
                    <%--<button>获取短信验证码</button>--%>
                    <div style="clear:both;"></div>
                </div>
                <%--<div class="dt1">--%>
                <%--<p class="dt-p f-l">验证码：</p>--%>
                <%--<input type="text" value="" />--%>
                <%--<div style="clear:both;"></div>--%>
                <%--</div>--%>
                <div class="dt1">
                    <p class="dt-p f-l">邮箱：</p>
                    <input type="text" name="email" value="${user.email}" />
                    <div style="clear:both;"></div>
                </div>
                <div class="dt1 dt4">
                    <p class="dt-p f-l">密码：</p>
                    <input type="text" name="password" value="${user.password}" />
                    <button onclick="window.open('${pageContext.request.contextPath}/user/toChangePass.action?id=${user.id}')">修改密码</button>
                    <div style="clear:both;"></div>
                </div>
                <button class="btn-pst" type="submit">保存</button>
            </div>
            <%--</c:forEach>--%>
        </form>

    </div>
</div>

</body>
</html>
